package com.jd.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jd.entity.User;
import com.jd.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl  extends ServiceImpl<UserMapper, User> implements UserService{

    @Override
    public User get(Integer id) {
        return this.getById(id);
    }

    @Override
    public User getByXml(Integer id) {
        return this.baseMapper.getByXml(id);
    }

    @Override
    public List<User> listByXml() {
        return baseMapper.listByXml();
    }

}
